Changing to Raphael.js, Snap.js has a lot of difficulties in using curves