make it work in the browser