Fixed UMD

You were using version that exported Function wrapped in Object. This
was causing type errors when using with browserify. 

Also if included as a script it will bind to window as HTMLJanitor