change a script to https