Revert "converting javascript map() to jquery map()"

This reverts commit 944c1f46789ea83aa3c99a0c3a22cc62d39662f2.