Demo: https://kotsoft.github.io/particle_ba...
Code: https://github.com/kotsoft/particle_b...
Everything can mostly be implemented directly from the pseudocode in the paper. For more info about spatial hashing, I would recommend Matthias Muller's 10 minute physics. I also made some changes to the springs section to improve stability.