translating everything to js -> location.reload