SVG manipulation by Javascript (Raphael)