[Canvas worker] removing unnecessary element creation
diff --git a/player/js/worker_wrapper.js b/player/js/worker_wrapper.js
index a52ac7a..710a0cd 100644
--- a/player/js/worker_wrapper.js
+++ b/player/js/worker_wrapper.js
@@ -715,17 +715,16 @@
           delete animationParams.container;
         }
         if (animationParams.renderer === 'canvas') {
-          var canvas = document.createElement('canvas');
+          var canvas = animationParams.rendererSettings.canvas;
 
           // If no custom canvas was passed
-          if (!animationParams.rendererSettings.canvas) {
+          if (!canvas) {
+            canvas = document.createElement('canvas');
             animation.container.appendChild(canvas);
             canvas.width = animationParams.animationData.w;
             canvas.height = animationParams.animationData.h;
             canvas.style.width = '100%';
             canvas.style.height = '100%';
-          } else {
-            canvas = animationParams.rendererSettings.canvas;
           }
 
           // Transfer control to offscreen if it's not already