Adds coffeescript package and code refactoring