Replaced forEach with for loop
added package.json