fetch external jsapi and cache content