Implemented the path walking method in JSSequence