Ran code through jshint to fix errors