Refactoring cleave.js file, another js scripts and format changes in templates