Split out home page js