javascript one line if without else