Wrap indexes in module-ish IIFE
Make encoding.js work without indexes