new app.js and reinstate to head