update js to match dpm.api