Rendering page in js, not html