remove global state (wantsToComment)

22cf187deb276a57d868c847ad8400dc1bd4d545 broke the scroll effect when
clicking on the comment post tool.  This is due to the fact that the
code depended on global state (wantsToComment variable).