fix comment editing javascript