actually add the changes for the switch to the different js file