Finish JS searchNamesII and tests