changed line in get json using location.hostname