wait for window to load before using DOM