auto-select text after template is compiled
added library for multiline string support in js