GIS.lab Web: moved most of Search tool code into static javascript file