Removing window.load callback from library