Capybara driver written mostly in client-side JavaScript for cross-browser automation