IE8 bugfix: changed use of .forEach to jQ $.each(), as IE8 doesnt do .forEach