[jslint] Enable js lint and fix the errors.
Merge pull request #330 from halton/jslint

[jslint] Enable js lint and fix the errors.