added support for raphael.js