update JS to reduce number of decimal places