minor fix for units in js