Restructured and added flask
Merged map.js changes