Changed to use CoffeeScript