graphic.js cleanup