fix typo in routeDistance and move script tag inside body tag as this is how inline js is recommended to be done
add version number, can be useful