added basic functionality

replace
replaceElementsByPredicate
replaceElementsByClassNames