complate dome.js (core.js)