move app init out of map.js