Update application.js

Updated global loading of header and footer