Fix iterating through parent nodes

The && has higher precedence than the assignment, so this was assigning
boolean values to elm instead of the parent element.
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Operator_Precedence
Fix for Chrome initial button activation/deactivation

When the text area first received focus, this was getting called with
the document and deactivating all the buttons.