Move window.onload to scripts section