add some Jasmine tests to the Sierpinski triangle  demo. Also extend functionality of the demo, and improve the presentation a little