graphics.js and events.js ready