Splitting map data parser off. Plan is to generate JSON objects for maps rather than doing all the parsing every time the page is loaded