Unify js style, add missing comma

Several style patterns were used in the documentation. This unifies them