improve support for browser usage

I was getting a : `module not defined` followed by `ansi2html not defined` wihtout this.
Merge pull request #5 from tobeportable/patch-1

improve support for browser usage