Javascript Single Line If