Fixes ibapi.js to use new methods