capybara with javascript