Add logic to only run chart function on menu-item page and only load initialize foundation on home page.