Update applyMap.js

stringify debugging