Single Line If Javascript