Updated script to patch index.html