Infinite lists for JavaScript