Fixed and commented the .ajax method