Money example from Test Driven Development using JavaScript