Bugfixes

I repaire the bug which I insert in gesture.
I also insert 'use strict' and fix the shown bugs.