Code running rewritten. test.html reserved for reference. Adds link to examples.