Javascript Pipe Through Footing