Updated to use CoffeeScript for developing js