Move the ochg variable out of the plugin

I am going to do a simpler rewrite of the code that will trade convenience for /js visibility