Fix Javascript for enabling Plugin access
Merge pull request #2606 from ghoppe/fix-user-plugin-js

Fix Javascript for enabling Plugin access