Wrap index outputs in div