test driven javascript