Set headless as javascript driver