generates JavaScript source code to create Elements from a given html string