mid upgrading raphael.js to latest version