delete function

learning javascript to help (JQuery) with the delete functionallity