switched codebase out to coffeescript