You seem to be using slim
version of jquery
which does not have the method getJSON
thats why you are getting this error.
Please use the full version of jquery
instead from the below link.
https://code.jquery.com/jquery-3.1.1.min.js
Slim
version of jquery
excludes ajax
, animations effects
etc