Double-tap and hold until the JavaScript alert occurs. After closing the alert, tap again. Without touchcancel you will see a double tap instead of a tap.