add :js to list of ops optimizable by and/or, add wrapping parens to
boolean exprs