add function.js
I got ES5 array methods