Changes for new plugin installation

I had to fix a few things relating to JS-only plugins while developing the plugin installation prototype.