cleaned up index.html by moving javascript into app.coffee