Uncaught TypeError: $.ajax is not a function
Neither of the answers here helped me.
The problem was: I was using the slim build of jQuery, which had some things removed, ajax being one of them.
The solution: Just download the regular (compressed or not) version of jQuery and include it in your project.