fix HTML index js code