update on register.js