Update plugin.js
better comparison and issue fix proposal
Merge pull request #76 from taigh/patch-1

Update plugin.js