Replaced custom is_integer with jquery isnumeric