Use Math.max function.