Adding conditional loading of scripts/css to app.js