registration javascript edit