Raphael.js draw process