Removed window.onload test