front add register.js