poll for dom ready