rm unnecessary redirect js