scrict mode fix

this fixes a problem with setting self in strict mode.
I also changed the defining of the system variable because let doesn't
work properly yet.
added forEach

added foreach for Webkit and for NodeLists