Added window 'onload' event listener