Missing empty line at end of file. Plus it would be a good idea to add comments describing the events, and what kind of event object listeners receive...