discard using the javascript "delete"