Bug fix: The value of radio buttons was always showing as 'None'

This was because the onclick handler referenced a variable outside
of its scope, and closures don't actually work in js.

This bug showed up as,eg the earned and unearned income being 0 for everyone.