Fix insecure script loading error on https sites