mods to public app.js file