refactor nag index counting logic
rename parseInt -> Math.round
remove unnecessary calculating