window.onload replaced with onload