waiting for dom ready before calling
switch to jQuery for testing and observing dom ready