Set the various js variables to work with the new hostname