Update what script is loaded on the controlling page, update openwindow method to work correctly and go to correct URL, remove routes2 route.