Updated main.js

Updated 'main.js' so that a state's 'styleId' changes when the map type
is changed in the dropdown.