Google understands some parts of the code and can render thumbnails of javascript pages, but I would never rely on this for my pages to be indexed.
The best is to create number of html pages just as google webmaster suggests.
Dont forget to put sitemap as well.