Documentation - library page - fix and enhancement  (#2772)
Documentation - library page - fix and enhancement  (#2772)

* Fix sample code for recent changes, show ES5 JavaScript code that will run with node (#2768)
* Fixes requested: no console.log, consistent use of spaces, boolean flag not literal

palantir/tslint,berickson1/tslint,palantir/tslint,andy-hanson/tslint,andy-ms/tslint,JoshuaKGoldberg/tslint,mprobst/tslint,JoshuaKGoldberg/tslint,andy-ms/tslint,IllusionMH/tslint,IllusionMH/tslint,JoshuaKGoldberg/tslint,andy-hanson/tslint,IllusionMH/tslint,andy-ms/tslint,berickson1/tslint,mprobst/tslint,mprobst/tslint,andy-hanson/tslint,palantir/tslint,berickson1/tslint