update edit js