Javascript Logical Operator Precedence