fix syntax error, also serve old application.coffee via API