refactor foodmap.map.js to clean up the js a bit