Create an event object cross browser. Useful for unit testing mostly.