removed distance calculator from index.html.erb and added it to its own file in Snippets directory