Removed unneccessary variables in canvasrenderer.js