Caompatibility with jQuery 1.9 and later

Fixed issue #2. 
$.each(s in jQuery 1.9 and later is not applicable when s is a string.