worked on the array.js