               nav: eco.render navTemplate.toString()
               subnav: """<div class="subnav-wrapper">#{eco.render subnavTemplate.toString(), options}</div>"""
               content: """<div class="#{options.page}">#{eco.render contentTemplate.toString(), {} }</div>"""
-              scripts: js 'app'
-              templates: js 'template/index'
+              scripts: js_app
+              templates: js_templates
               user: JSON.stringify usersObj
               recurlyDomain: process.env.RECURLY_DOMAIN
               flash: req.flash()

      nav: ''
      subnav: ''
      content: ''
      scripts: js 'app'
      templates: js 'template/index'
      user: JSON.stringify usersObj
      recurlyDomain: process.env.RECURLY_DOMAIN
      flash: req.flash()


passport.use 'local', new LocalStrategy(verify)

# Set View Engine
app.set 'views', 'server/template'
app.engine 'html', ejs.renderFile
app.set 'view engine', 'html'

js.root = 'code'

js_app = js 'app'
js_templates = js 'template/index'

# Middleware (for checking users)
checkThisIsMyDataHub = (req, resp, next) ->
