Update main.js

changed the mouse events to touch events