Update addArray.js