Added class sugar to dom2.js