Apple has posted “Puzzler”, sample code that illustrates iPhone web standards and javascript integration. Take a look at the details on the Puzzler page.