Add jshint, and fix all it's issues. This fixes a couple bugs.