update example
update to support ie8 and firefox (innerText to innerHTML)