Changed map function to make it work in IE7

By changing from javascript map function to jQuery map function the demo
now works.