add comment to api.js