Headless WebKit with JavaScript API