combing through trouble spots with JSHint