Fix JS warnings and errors in main.js
Expand provinces on click
Add legend
Merge remote-tracking branch 'origin/master'