fix navbar HTML and javascript loading in application.js