Iterators and Generators in Javascript (www.kenneth-truyers.net)