restore homepage js