add `each.js` to scripts section in component.json file.