wrap body buf into a brick.Text so every component would have its inited by the time we're printing js