You are trying to get .hash of DOM element:
$('ul li a').click(function (e){
checkURL(this.hash);
Instead get the href attribute:
checkURL(this.attr("href"));
.hash only works on URL object
Also, this first use of checkURL(); after documentReady should be throwing errors as it does not match the method definition