Get headless browser working