Refactor calculators to use CoffeeScript