Simply move down the declaration of popup method.  Nothing else :p
Remove checkbox in popup.  Use a variable to remember the state of the switch in popup.
The state is actually read from content.js, which indicates if checkit is enabled in this tab or not.
That is, users can control whether they want to enable checkit per tab.