Ternary Operator Precedence Javascript