fixed borked javascript code in unminified javascript
Merge pull request #1 from mooreds/broken_example_code

fixed borked javascript code in unminified javascript