quick little js hack for page reloads