fix "TypeError: ['@@iterator'] is not a function" on Firefox 34