simplify index.html script