Fixed typo
Added live demo and self-test feature to examples.js