add if for if on homepage only run topbar js