Make it work in the browser too