Update README.md

Add api.js documentation