fabric.js adapted to work with ender environment