Client side coffeescript code