rename core.js to dom.js