add touch handler to js