Use promises instead of callbacks for javascript api
Load unread items on index page