fixed MOZ JS event bug