Same origin policy blocks location.reload()