Rename the delete method to remove

... since delete is a keyword and IE8 doesn't allow it.