define the isNumber function used in the input maxlength property shim