API.js updated to match doc.js
bookmarks widget updated to work with the new api.