Fixing bug on forEach and adding experimental script type template