fix api.js
work