modify plug.js