Added compatibility for svg.js v1.0rc1