Fixing hardcoded HTTP (we want to work on both HTTPS and HTTP)