add jsapi to directory