added foreach function to HTML/Node list/collection objects