Add javascript next unread items api call