More changes to applicaton.js