Window.onload replaced with onload