I came across the same issue a few weeks ago and wrote "Simrou" - a very basic structure that does nothing but such a hash-based routing. You can define routes in your own Backbone style, and then attach action handlers to GET, POST, PUT requests, etc. (GET is basically a click link, POST, etc. It can be caused by forms).
https://github.com/buero-fuer-ideen/Simrou
source share