Update newarray.js