update render module

I put all the param on attributes of the object prototype, and I emit
the final object at the end.