Working on the doc.

API.js simplified