add javascript 1.6 and 1.8 extend for array