Adds the baseurl variable and makes the appropriate changes