adjusted renderer.js code format