Changed the button event from touchstart to click, as touchstart doesn't work on iPad among other things