tidied html and changed moved onload from html into the JS