Adding AMD, return the plugin method, tests boilerplate.