Javascript test-driven development framework