finalized coffeescript migration