move to render.coffee

Migrated the index.html embedded script to render.coffe, converted most
js to coffeescript.
Disabled the console for now, since it was behaving oddly.