fix javascript multiple window.onload