remove getElementType (unused since Element+Token modifications)
remove unused stuff
escape_single_quote done