Update gnmapParser.js

fix some issues