wait for page load to finish before manipulating dom (internet explorer compatibility)