update for plugin.js