Added a resize function to make the chart and friends list change styles on window resize.