     for k, v of obj
       js = ";zappa.run(#{v});"
       js = minify(js) if app.settings['minify']
-      route verb: 'get', path: k, handler: js, contentType: 'js'
+      route verb: 'get', path: k, handler: js, type: 'js'
       v.apply context
     return
 

serveStatic = require 'serve-static'

vendor_module = (module,args...) ->
  fs.readFileSync path.join (path.dirname require.resolve module), args...

socketio_key = '__session'


jquery = -> jquery.content ?= vendor_module 'jquery', 'jquery.js'
jquery_minified = -> jquery_minified.content ?= vendor_module 'jquery', 'jquery.min.js'
sammy = -> sammy.content ?= vendor_module 'sammy', 'sammy.js'
sammy_minified = -> sammy_minified.content ?= vendor_module 'sammy', 'min', 'sammy-latest.min.js'
socketjs = -> socketjs.content ?= vendor_module 'socket.io-client', 'socket.io.js'

# CoffeeScript-generated JavaScript may contain anyone of these; when we
