Fix loading of paper.js when using several scopes/canvas elements in browser and when used in Node.js