Fixed layout editor on Firefox
Firefox does not expose the global 'event' object, unlike IE and WebKit browsers, instead we had to switch to relying on jQuery's originalEvent property in its event objects to do the job