Fix index html indentation and js bug