js template uses single div root when handling templates from script tags, key type: property -> look for class, string -> look for any element