fixed refs on app.js and added jade templating