Use jshint, tighten whitespace, and fix annotations.