Added a resize hook to the resize function.  If a browser window gets resized it will redraw the screen accordingly 500ms later.