Refactor to use coffeescript. Add test coverage. Add grunt to project.