Update plug.js

Basic initialization framework