fixes #1020 so that the API browser works properly in the Chrome Extension