NOTE: For this example to work you have to run it in a web server context. The js for the example code is not minified so it is readable. See advanced.js.

This is a more advanced example demonstrating various features: