Working on conversion to CoffeeScript