Javascript Linear referencing function functions using GeoJSON