Update applyMap.js

fix variable name targets