Added use strict and jshint to locate a few small issues.