Optimized array.js

i-- is faster than setting 2 variables, comparing and increasing i.
There are some tests on jsperf site.