adding namespace for window and body eventlistener

see #9