tiny bit of code for an express app to either return JSON, or render a template and return html