Added a working example entirely within one page

This works for me in Chromium 26. You might want to test it more in other browsers. It should work in Firefox, I expect minor tweaks needed to get working in Opera and IE. Might also be better in a different location?