Iterating over sparse arrays in Javascript
hexmen.com