hc-sodxtrmts.js code cleanup