added arrayextension.js and each and whre functions