Now loading api.js with a protocol-relative URL