I have an open PR for the JS coding conventions to make sure all of these inline conditionals are wrapped in parentheses. I think we should start following that rule.