Vanilla JS getJSON function