Move some stuff in index.html as initiation of optimization