Pappus's hexagon theorem

From JSXGraph Wiki

q
p1
p2
p3
p3'
p2'


The underlying JavaScript code