Unify js style, add missing comma

Several style patterns were used in the documentation. This unifies them
Merge pull request #11 from stevelacy/patch-1

Unify js style, add missing comma