$.getHash = (url) ->
url?.substring(url.indexOf('#') + 1) || window.location.hash
return (url != null ? url.substring(url.indexOf('#') + 1) : void 0) || window.location.hash;
(if url then url.substring(url.indexOf('#') + 1) else window.location.hash)