Minor changes on plugin.js