custom_register.js updated