Update plugin.js

Added configuration options