Changed square brackets to parens in a call to Math.max()