issue #361. Draft code for assignment finalization.

How does this code even work? You can't have JS statements in the middle of JSX like that.