A cross-browser DOM ready event handler