update jsapi model