chore(doc-gen): add jshint checking to examples and tests
docs(*): fix jshint issues in examples