Revert "Changed to jQuery map function"

This reverts commit 5db42fd4eac0b08d7cc7c96439eb1448e4d7617f.
Changed map function to make it work in IE7

By changing from javascript map function to jquery map function the demo
works in IE7.