Temp gesture javascript binding code