Update to render index page with JS.