JavaScript function to get humanized number with the correct suffix