Capybara-interface in pure javascript, for use with jasmine.