Update plugins.js

Added a name parameter to the pack.register method because it is required.