moving rendering code into pentimento_renderer.js, migration will happen there i suppose