window.on no longer exist. Corrected the listeners

Reference: http://api.dartlang.org/docs/bleeding_edge/dart_html/Window.html