See my comment on render.js. If you take my suggestion there, then you won't need this variable here.