Update JavaScript API docs