fixing jsapi load