First versions of reg.js and regSend.php