Replacing http:// with https:// for external script links