turns json endponts into jsonp endpoints so that ajax can be used to get the data