modified api.js