Converting jQuery to CoffeeScript examples