.on() now works for window as well
more tests