js form edit fix