Some people consider use of array as object is a bad practice, Firefox does not like <a href="http://jsperf.com/array-as-object">it</a> very much, plus such pattern will increase memory use, although, both of these facts are not crucial in these context.