Add mark read and mark unread capabilities to the js api