Use getJSON instead of ajax