Added name parameter to pack.register method in plugins.js

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