Make map function as expected in IE9/10