Updating precision on JS