Use better cross-browser DOM methods