Changes needed to work in the browser.