Fixed SVG is not defined error

First of all thank you for a nice library!

I tried to use it with [browserify](https://github.com/substack/node-browserify) but when you require commonjs module `this` is not a `window`. Thus `this.SVG !== SVG` and code fails.

This PR fixes the problem and it works in the browser as commonjs module.