moved onload to script