extract dom.mock.js
call _.map.call(nodes, $Element) inline + other refactoring