Although this script does not transfer your data anywhere (view source) please don't use real credit card numbers.
Instead you may use these numbers which syntactically are valid but obviously there are fake.
Do you want the JavaScript class source code?
https://github.com/eugenmihailescu/mynix-card-validator