Fix registration js