Fixed most jshint warnings.
Merge branch 'master' into jshint-cleanup
Merge pull request #1 from Morgul/jshint-cleanup

Jshint cleanup