remove 'extra.js', rewrite 'index.js'