jquery.js -> dom.js; improvements in inspect code for building page