Fixed logout functionality by adding application.js file.