Updated api.js build