commit api.js