Cloth simulation in Javascript/WebGL