Fixed broken method call from previous JS driver

The syntax for accepting JS alerts is not a part of the
Capybara interface, so the capybara-webkit and selenium
webdrivers implemented it differently.
Fixed project spec that used the wrong factory

Should fix the fourth failure at
https://travis-ci.org/rwash/contribute/builds/6854325