front page js