Address jsHint complaints

addressed jshint complaints and removed a dangling console.log in the test