added erb functionality to app.js