Use JavaScript to render page