fix js bug for new row form