Updates to fix jshint warnings

Made a few minor changes to fix jshint warnings.