replace params.scheme with params.protocol

When passing an url string to https-browserify, a http request was send off. This commit simplifies the code and fixes that bug.