An exercise in Javascript, in using Objects.