move canvasObjects inside ready