Adapts visualizer graph width to screen size

This uses window.innerWidth - 51 to scale the graph to the screen size and allow
a 20-pixel padding on either side. This should be innerWidth - 40, but the graph
exceeds graphWidth by 11 pixels for some reason.