fixed registration.js