starting on rewrite of the application in coffeescript