renamed main.js to map.js and triggering click on legend to hide it on app load
moved some methods around so that the object tells a better story. did some renaming of attributes/methods for the same reason.