changed position of creating function with closure.
arranged object.js
console.log to assert in array.js.