1. Fix js patch, dont use `for in` to iterate an array
Merge pull request #13 from Witcher42/master

use common for(i=0;i<len;i++) loop instead of  for ... in ... loop, in order to compatible with some js lib.

Some js lib (for example: html5shim) add some function(forEach、indexOf...) to Array object in IE6，for...in... will travel on those new functions。