trying to add console.logs to make ajax work.