index.js pared down for breaking out the renderer