Added polyfill for the Array.map function for IE