Simple, the first javascript file that you are including is scripts.js, that have a $(document)..... When the browser engine reads $ browser tell you that is not a function (see your console errors before ask!!!)

So, if you move jQuery inclusion before scripts.js inclusion, it works perfectly.