JSHint - semicolon issues