Update applyMap.js

more logging