JS: How to subtract 1 (2, 3…) from each number in the array