changed the way the navbar and deck.js communicate and changed it to call separate file