Add domain register function
new register js