A small javascript / coffeescript events manager thing