window.captureEvents() returns undefined: true window.releaseEvents() returns undefined: true