Fixed forEach issue in IE < 9 where forEach would fail

Fixed forEach issue in IE < 9 where forEach would fail - solution:
http://stackoverflow.com/questions/8157700/object-has-no-hasownproperty-
method-i-e-its-undefined-ie8
Fixed scope issue in pubsub