modify DemoPlugin according to browser plugin interface