javascript tests headless