Make it work (kind of) in a browser environment.