JS read anchor or URL

Because my site is pure AJAX I need a way of having individual pages linked to.

At the moment the links are done with dud-links: #home, #about etc…

Is there anyway JS can read these or is there a way I can have the page appear as if it went to site/page/ when really it just did a JS function.