Restore at least closure around index.js