enhance script, remove the element selected by element selector