Fixed wrong detection of click event
Fixed touchend events not being removed when $.off is called