some fixes in details.js but still not working and added a new regex to creditcard example.