Changing http to https in scripts