writes ajax call for making instagram api call