Fix problem with html5shiv and old IE

The 'for..in' loop caused problems when the array was extended with
more methods (like map), e.g. by html5shiv in old IEs.

BTW, the minified version looks completely different. I suspect I have a different version of uglify-js (I have 2.3.4).