work around for jq 1.9 which no longer supports .after on fragments thus now returning array of top level els which can be passed along to append etc