Simplify returning from forecast()

Rather than keeping track of two separate calls to `jsonify`, the conditional logic can be used to control its arguments. If the arguments or logic grow more complicated over time, they can always be captured in a variable that gets passed to `jsonify`.