Figures out if page is HTTP or HTTPS

Now the report is loaded using the same protocol as the page itself.
This fixes the script not working alternately on http/https