Fix bugs with toc not highlighting, begin search overhaul