Remove dead code from index.js.

See #224.