support jsapi in model