Remove hardcoded http protocol so that requests will be made on same protocol as the page