Please specify a radix when you call `parseInt`, as a matter of consistency. 

`Math.abs(parseInt(index, 10))`