Fixed the distance bug; Added some stuff to the index.html