Three.js + Fabric.js but with mouse and touch raycast

yeah, its working.
at line no. 72, cnvs variable is not declared, how it is working?
(I also saw this same situation in this examples code: JSFiddle)

please reply me

thank you so much, your solution is very useful