Update plugin.js

The url part "/checkDocument" is already on line 182 causing the proxy script returning an error 404.