perf(jqLite): use index instead of array.shift()

it is much faster: http://jsperf.com/array-shift-vs-index