Simply add points to your path before and after the for-loop that generates your evenly distributed segments:
path.add(new Point(0, 1) * view.size);
// Add 5 segment points to the path spread out
// over the width of the view:
for (var i = 0; i <= amount; i++) {
path.add(new Point(i / amount, 1) * view.size);
}
path.add(new Point(1, 1) * view.size);
This will give you points anchored to the bottom of your view. To account for the new segments, change the for loop in the onFrame function to read:
for (var i = 1; i <= amount+1; i++) {