fix index.html onload