Fix JS style issues in calcdeps.js