checking window.onload