Fixed a small bug

Also updated IE11 support for for-loop iteration scope.