Update index.js

global leak