support for building sibling paths

javascript function for creating sibling paths