[javascript] setTimeout in for-loop does not print consecutive values