Sorry for the short reply, I'm about to go out.

In custom.js, you have:

Code JavaScript:
...
    JQuery("#randomImage a").html(img);
    JQuery("#randomImage a").attr("href", path);
  }
}
 
JQuery(document).ready(function(){ 
...

"JQuery", should be "jQuery"