mainjs close button event touchEnd/mouseup