Start using Jasmine. Write better JavaScript. Profit.

JavaScript