Adding conditional loading of scripts/css to app.js

Hey Chris, just adding the condition load, mainly based on daryls implementation in the require.js prototype