Let headless mode take a string path for nodeJS convenience