Added some basic javascript to track window resize events and updae the UI accordingly.