JavaScript keeps concatenating numbers in a for loop even after parsingFloat() [duplicate]

Right now, you're adding an integer to a string, so you're making a string concatenation.

Change

 var value = newScore + 500;

to

 var value = parseInt(newScore,10) + 500;