Thanks for pointing that out Craig! We could fix the if condition for this for the default variable name with,

if( this[variableName].value > max && variableName !== "my" ) {