Playing with the new Generators in Javascript.