cleanup javascript
change...we be rolling with APIs now
give a better nasty error
refactor...move to coffeescript