Fixed event.preventDefault() for Firefox