The DOM isn't necessarily initialized at this point so we need to wait until the page is ready.