Javascript data validator for use with user input from web forms, APIs, etc.