[javascript] how to remove key+value from hash in javascript