title: Test driven development for a JavaScript library
body: <p>At the moment I'm working on a JS library for a webservice, you can compare it with Twitter Anywhere. Now i want to make it more test-driven.
  It's not easy to test because it has to work on every site that wants to make use of it, and of course with every browser.</p>
  
  <p>How can i test the library efficiently?</p>
  
  <p>All the API requests and responses are in JSON, is there a good way to test these calls?</p>
  
  <p>I know about Cucumber and js-test-driver.</p>
  
  <p>Greetings,
  Chielus</p>