Wait for document ready in index.html