fix reg for map
add mathjs from https://github.com/josdejong/mathjs