Use a generic addEvent method that works cross browser.
WIP - get things working properly cross browser

1. Back button not working
2. need to attach event to body, not window 
	- doesn't seem to help with 1., and might break things in other browsers?