javascript addRow  fix