JavaScript implementation of an NPI Check Digit generator and NPI validator.