How to get JSON in the browser.