Update plugin.js

Seems to work fine now, but didn't test deeply