Use jshint from core, make required fixes, rm dead code.

Change-Id: I9718a0fdfc86f986c4045187d381117c13947b12
Merge "Use jshint from core, make required fixes, rm dead code."