changed js register