Switched api.js links from https to http, to work around an issue with firefox