Update for Firefox to prevent window.event error.

Based on this Stack Overflow: http://stackoverflow.com/questions/9813445/why-ff-says-that-window-event-is-undefined-call-function-with-added-event-list