Test driven JS development