AMD-ify plugins

Using require to load the plugins fails when you compile them sometimes. This helps with that.