Figured out the this issue.
Made sure to pass i to setTimeout.