Update js to work with touch event.