modified app.js to add new posts controller and inline html