Javascript code for validating Estonian personal identity number and company regisrty code