Merged EventCapture.js