Updated main.js -- FEATURE WORKING

The feature now works so that the map, infoboxes, and legend change upon
the click of the "Search" button. This adds less lines of code than the
original idea of this feature.