handle browser window resize

* `this.on("resize", function(event)` is send with `{ width: ... , height: ... }` as an event
* if `settings.fullscreen === true` then `this.width` is updated `this.height` and canvas DOM element width/height as well