replaced live function with on in coffeescript