Update readme to add information on JS api and document model