add a separate function "singleElementParser"  to process element so we can use it to compress SCRIPT / STYLE tags