Added directions functionality and cleaned up javascript on locations page.