Wait until the DOM is ready before starting everything