Makes library minification safe

Your library wasn't minification safe, meaning it breaks when running something like Uglify on it. This pull request fixes this.

Thanks!