fix bug in IE<=8 (no Array::map), closes #751

looks like this broke in 2812fe27

also s/this.i/var i/, since the functions that needed it were removed in
a1edab6ef