make it work in a browser