Added after_sort callback, added clearAndBuildTextIndex func, changed default text for searchbox