render page by javascript