Fixed variable scoping problem.

If you don't put `value` into a new var inside the function,
it will stay that value across different executions of the
function
don't refer to value again in that function (sort of for consistency)
Sometimes we need to know whether to render