Consistent js style for docs
Merge pull request #5 from passy/index-js-style

Consistent JS style for docs