DOM onReady() implementation