A javascript one instance class that contains regular expression and validation methods