Kill the alarm using javascript in the browser