A test-driven JS assessment