swapped paperjs with js example