Improve code readability and quality.  Includes some JSHint
tweaks as well as a couple of changes to make files pass.