cross-browser wrapper for DOMContentLoaded