Remove local sharedPlugin variable

* Top level static variable now takes assignment instead.
Merge pull request #18 from paulyoung/remove-local-variable

Remove local sharedPlugin variable