Fixed the issue of primitive types being passed as JS objects in IE9

Changed the callback parameters in $.each() iterator.
#1388