lots of changes and tweaks - cfg/application.js