window.load wrapper doesn't work