deprecated api.js removed