adding a window.onload