<p>I am looking for a simple JavaScript example that updates DOM.<br>
Any suggestions?</p>

I believe that this tutorial on jQuery has an example that might help you:
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery