Pather.js
Subscribe to changes in window.location
Disclaimer: This is work in progress
Works in browsers supporting the HTML5 History API, for older browsers, a polyfill like devote/HTML5-History-API is required.
Examples
Simple
Pather windowhistory
Named parameters (Sinatra/Backbone style)
Pather windowhistory
You can also match against the location hash:
Pather; windowhistorywindowlocationhash = "nutrition_facts"