fixed the register transition; added the cookies $js file to index