fix home page js bug