Put scaffolding code into index page