update app.js with history.pushState