JavaScript: fix handling of parentheses around an rvalue