improve support for browser usage

I was getting a : `module not defined` followed by `ansi2html not defined` wihtout this.