Made the Renderer work well on resized browser windows.

Basically, when I resized the demo the canvas wouldn't show properly and this fixes that issue.

It's only natural a user might resize his window while he's playing a game or doing something else, so the Renderer should be careful about it.