javascript: map numbers