page refresh js modified