Create register.js

create focus function