Move foundation script include from global footer to home page since is only needed there. Moved foundation init function to end of home page from app.js since is only needed on the home page. This fixes the gallery not intializing correctly when coming from other pages inside the app.