JavaScript providing evenly spaced markers along a custom route