get news API via JavaScript