Where there is code there should also be tests. And the tests need to go green every time the code is changed. You are testing your client side code, right?
Using Buster, you can have your tests run very quickly on PhantomJS, a headless WebKit browser
Configuring Jenkins CI
To accomplish this, go configure your project in Jenkins, find the Build section, and add the following build steps (in order) using Execute Shell:
1. Start the Buster server, and make the Phantom browser connect to it. (The buster_phantom.sh script is included at the end of this post.)
2. Run the tests, and make Buster output xUnit formatted XML.
3. Cleanup by stopping Buster and Phantom.
4. Run JSHint with the —jslint-reporter flag.
5. Run JSHint with the –checkstyle-reporter flag.
Finally, under Post-build Actions, add these steps:
1. Publish Checkstyle analysis results and Publish JUnit test result report.
2. To mark the build as unstable when one of the JSHint checks fail, add Report Violations.
3. If you have not done so already, you should add email notifications when the build goes unstable.
The script used to start Buster and Phantom, are embedded below from https://gist.github.com/4285257:
It should be quite easy™ to run the tests on more platforms, perhaps even using a browser provider such as Browserstack or Testling.
If you have an Open Source project going on, you can run the tests using Travis CI, see this guide by QMetric.
And the result? Beautiful graphs on the project page, sure, but more importantly, the tests are run every time your code changes, and you get feedback when something is wrong.