With this code below, I get an error: $ is not defined. My question is: How it is possible?
$ is not defined
...
You are including jquery twice.
The first and the last js files are the same, except one is minified and the other is probably not. Remove the non-minified one and it should work for you.