Refactored back element render into renderer.
Fixed json output.