Port hook_init to hypothesis_page_attachments as we are injecting JS to the page