stuck on calling method from JS