added event listener, started the onReady function