Revised JS API docs