improve for loop of javascript

The default loop change from:

```js
for(var i = 0; i < Things.length; i += 1) {
   Things[i];
}
```

to:

```js
for(var i = 0, l = arr.length; i < l; i++) {
   var v = arr[i];
}
```