Updating AMD wrapper for plugin.