Added window.JSON dependency check to default file.