fix on js register