Fixed javascript validation
Reverted to correct definition of NumberType