move all coffeescript over to javascript