Fix issue with grunt uglify.

Seems like uglify is stripping away + '' and while(i--) will count down the string value instead.