DOM and Graphic event manager for Leap Motion