pulled more code out into fullMap.js