How to create A Path with JavaScript?

Hey everybody,

Is there anyone who can explain how can i create path (specifying start and end point) with java script ?

I searched on Creative Experience JS files but i couldnt create a path. Can you help ?

Thank you.