Simple URL parameter based routing script for JavaScript.