Internal JS changes for map searching