not working yet: js to delete unwanted wedges