Load gallery-base64-min.js on https

If the current website protocol is https, then we load the local file instead of the remote file as it can be loaded on https.