Add more documentation for array.js functions