Control Javascirpt video player using gestures