fix: fail to get 2d canvas context

Fail to get canvas context using canvas.getContext("2d") because of mistype
Merge pull request #9 from Gloridea/patch-1

fix: fail to get 2d canvas context