added code generation to index2.html
frameless index becomes the default one