javascript ternary if without else