Generate fixtures in JS without making assumptions about the host page.