JS: Using window.addEventListener instead of overriding the window.onload function