Updated npm packages & added foreEach js function.