Replace render() instead of creating renderJSON()