Further optimize2d index.html