Javascript function to make long int values shortener #263