Bug 844100 - Add linter test to Travis-CI
Bug 844100 - follow up, exclude external shared/js/ files from lint
Bug 844100 - follow up, lint fix to all scripts
Merge pull request #8646 from timdream/v1-train-bug844100

Bug 844100 - Add linter test to Travis-CI & lint fixes, r=dale, a=vingtetun