Fix examples so that they are valid javascript
Merge pull request #14 from gorillamania/master

Minor documentation fix - proper javascript for examples