updated application.js to requre aws