Changed remote script to use https