update js to handle touchstart