Fix map function for ie8.