bug fix for document load event
updated inner html sample