Preprocessor of embedded HTML templates with subnode naming for JS/jQuery