using component/event to add x-browser support
Merge pull request #2 from dominicbarnes/event

Using component/event to add cross-browser support