Updated GeoJSON return type for LineString.
Tidied up JS.