js form revised for add message