Changed map function to make it work in IE7

Now with correct variable.