When I run the JS in the console it redirects me to another page (as intended) and I cant run more commands because the JS context is not getting changed to the right one.