Update midpoint-search.js