javascript unit test with capybara.