added javascript to register.html