Added ns to window events