added checker for register with javascript

not implemented yet