Global leak detected: i

Got mocha error because of the missing 'var' statement