IE8 does not have map() and forEach() methods

use $.each() and $.map() instead