three.js webgl - curve modifier