updated aplication.js