add function in array.js and event utility in event.js