began converting to CoffeeScript