use correct method
Merge pull request #776 from nla/js-dsc-882

use correct method