trying to fix jsapi for inject.js