removed global references to canvas and audio