In gestures.html, renamed ctl to controller. Made this a member variable of window.