Re-factored KineticRender.js