Added https protocol to webpages

added improved script to improve security