jshint corrections -- unused variables and != instead of !==