Fixed JS in registration flow