test driven development for JavaScript