Moved event listeners to document

To work with Kinect