removed unrequired window.onload