Major refactor and rewrite in javascript

Rewrote in javascript so user does not need to have coffeescript
installed globally on thier machine.