multispecies javascript map fixes