The technology behind Processing and Processingjs is completely different. A library for Processing/Java will not work with Processingjs/Javascript. Processingjs is still very young, so there aren't many supporting libraries yet.
However, you could make a Java applet. Open the Processing IDE and go to Tools > Add Tool... and install the AppletMaker tool. An Applet is basically a small java program embedded on a web page that runs within a browser. In this way you could still use Unfolding Maps in your project.
Disclosure: I've never used the Processing Applet Export and Signer tool before, so check whether it is a feasible solution or not to your problem.