enabled removal of stub elements in selection delete mode
cleaned up/jsbeautified