one line if statement without else javascript