removed unnecessary window.onload call