Referencing jCanvas doesn't work


#1

I am trying to reference jCanvas, but i get the following error:

path\jcanvas.min.js:27 Uncaught TypeError: Cannot read property ‘document’ of undefined

Link to the library http://projects.calebevans.me/jcanvas/

How do i fix this error and I am sorry for any inconvenience, if this is a newbish question.