Fix for IE8 not supporting array.map()

IE8 was breaking in the wild on array.map calls, adding this solves
this issue.