added register.js