Cross-browser event handling functions made in CoffeeScript.