adding JS-hint to code samples, improves readability
fixed a typo in the readme samples
Merge pull request #9 from rexxars/add-js-readme-formatting

Add JS-hint to readme code samples