add array.js and some examples