An AMD compatible module to detect when the DOM is ready. Based on jQuery's source code.