collapsed events.coffee into one file