js:  error in Java operators -- ?: operator is **right** associative, not left