js for deleting entries