api for js-rendered html.