removed extra brace from canvasTouchUp which was breaking it on iOS