Bug fixed array.js