added onload to initialize script.