checking if DOM ready loads