mark as duplicate
javascript variables cannot be scoped to a for block
fix merge fix