Updated demo to show how to access methods from outside plugin