fixed issue #7 where message events appeared after proxying as window objects