enabled map styling, restructured map.js to accept object literal