Update applyMap.js

remove no targets code