Firefox js/jQuery event fix