update dfatool.js, add subscope inference support