add tests and make sure exposed JSON doesnt override the real window.JSON object