fixed jshint errors
require block in now JSON
Also, the http: / https: stuff was dumb