Fixed IE8 error with help from
https://github.com/ehouais/raphael/commits/master/raphael.js