Fix audio visualisation

Percentage widths cause problems with rendering the canvas so se js to update it on screen resize
Also make sure to calculate the offset correctly based on the canvas height and then scale - drawing rectangles with min and max values seems to produce better results than simply drawing line points