Javascript tdd demo