Look at this post,
it shoul help you understand Global variables and Set text on Onload
Have fun prototyping,