Update iapi.js

Quick fix