tore out old script, wrote a new one in register.html