sodxtrmts js code cleanup