renamed main.js to map.js and triggering click on legend to hide it on app load