Fixed the render mode to work in a browser.