Secure requests for JS code return insecure assets with the WordPress Plugin