Refactored map code, trying to move most logic into taxonmap.js