blocking until DOM is loaded and elements are available