allow gdata.js to handle both http and https