Create write_index.sh

This script is invoked by the infinite_index script and writes the location co-ordinates to the index.html file by updating it.