refactored svg margin in states.js ala bostock