added listener for "domready" event