modify mat_loss_add.js.erb