Make it work in the browser (i hope)