append_elements: using Array.prototype.forEach to loop over elements object
Merge pull request #111 from benjibee/master

append_elements: using Array.prototype.forEach over elements object